const Service = require('egg').Service;

class HomeService extends Service { 
	 async login(id){
		const user = this.app.mysql.get('user', { account_id: id });
		return user;
	 }
	 async rgister(data){
    const user = this.app.mysql.insert('user', data);
    return user;
	 }
}

module.exports = HomeService;